home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
graphic
/
pbmpl91d.zip
/
PBMPLUS
/
SRC
/
FIX_IO.C
< prev
Wrap
C/C++ Source or Header
|
1993-01-08
|
299b
|
15 lines
/*
* compile with: gcc -o fix_io.c
* add to libc with: ar q libc.a fix_io.c
* ranlib libc with: ranlib libc.a
*/
#include <stdio.h>
#include <fcntl.h>
void FIX_IO(void) {
setmode( fileno(stdin), O_BINARY );
setmode( fileno(stdout), O_BINARY );
_fmode = O_BINARY;
}